package com.ruoyi.system.util;

import com.ruoyi.system.domain.IndicatorJudgement;
import org.springframework.stereotype.Component;

import java.util.HashMap;

@Component
public class SubjectiveWeightCalculateUtil {
    public HashMap<Long, Double> calculateSubjectiveWeight(IndicatorJudgement indicatorJudgement) {
        JudgeResultObject resultObject = JudgeResultObject.parseFromJson(indicatorJudgement.getJudgeMatrix());
        HashMap<Long, Double> map = new HashMap<>();
        resultObject.calculateWeight(map);
        return map;
    }


}
